<template>
   <div style=" padding: 10px;">
      <MyEditor style="z-index: 99999;" v-model="activeNewsItem.content" :setEditorToolbar="editorConfig"
         @previewPage="previewPageClick" />
   </div>



</template>
<script setup name="ProjectEditor">
const activeNewsItem = ref({
   content: ''
})


const editorConfig = ref([])

/**
 * 预览页面
 */
const previewPageClick = () => {
   console.log('预览 获取html', activeNewsItem.value.content)
}
</script>